Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / Application-Defined Methods
The MRJPrintDocumentHandler Interface /


myHandlePrintFile

Handles printing a file.

public void handlePrintFile (File file);
file
The name of the file to be printed.
DISCUSSION
This application-defined method is called when the application receives a request to print a file. For example, this occurs when the user attempts to print a file from the Finder that bears the application's creator. You must register the method name by calling the registerPrintDocumentHandler method (page 44) when initializing the application. The handlePrintFile method is only useful if you have packaged your Java application using JBindery.

IMPORTANT
Printing is not supported in JDK 1.0.2 and earlier.
SEE ALSO
The registerPrintDocumentHandler method (page 44).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997